class CustomInfo {
  String name;
  String nameLetter;
  String cardNo;
  String validate;
  String group;
  String phoneNo;
  String introducer;
  CouponInfo couponInfo;
  List<String> tagList;
  AmwayInfo amwayInfo;
  PersonalInfo personalInfo;
  OtherInfo otherInfo;

  CustomInfo(){
    this.name = "";
    this.nameLetter = "";
    this.cardNo = "";
    this.validate = "";
    this.group = "";
    this.phoneNo = "";
    this.introducer = "";
    this.couponInfo = new CouponInfo();
    this.tagList = new List();
    this.amwayInfo = new AmwayInfo();
    this.personalInfo = new PersonalInfo();
    this.otherInfo = new OtherInfo();
  }
  CustomInfo.fromJson(Map<String, dynamic> json) {
    name = json['name'];
    nameLetter = json['nameLetter'];
    cardNo = json['cardNo'];
    validate = json['validate'];
    group = json['group'];
    phoneNo = json['phoneNo'];
    introducer = json['introducer'];
    couponInfo = json['couponInfo'] != null ? new CouponInfo.fromJson(json['couponInfo']) : new CouponInfo();
    tagList = json['tagList'].cast<String>();
    amwayInfo = json['amwayInfo'] != null ? new AmwayInfo.fromJson(json['amwayInfo']) : new AmwayInfo();
    personalInfo = json['personalInfo'] != null ? new PersonalInfo.fromJson(json['personalInfo']) : new PersonalInfo();
    otherInfo = json['otherInfo'] != null ? new OtherInfo.fromJson(json['otherInfo']) : new OtherInfo();
  }
}

class CouponInfo {
  String name;
  String validate;
  CouponInfo(){
    this.name = "";
    this.validate = "";
  }
  CouponInfo.fromJson(Map<String, dynamic> json) {
    name = json['name'];
    validate = json['validate'];
  }
}

class AmwayInfo {
  String joinTime;
  AmwayInfo(){
    this.joinTime = "";
  }
  AmwayInfo.fromJson(Map<String, dynamic> json) {
    joinTime = json['joinTime'];
  }
}

class PersonalInfo {
  String nativePlace;
  String grade;
  String job;
  String income;
  PersonalInfo(){
    this.nativePlace = "";
    this.grade = "";
    this.job = "";
    this.income = "";
  }

  PersonalInfo.fromJson(Map<String, dynamic> json) {
    nativePlace = json['nativePlace'];
    grade = json['grade'];
    job = json['job'];
    income = json['income'];
  }
}

class OtherInfo {
  String anmay;
  OtherInfo(){
    this.anmay = "";
  }
  OtherInfo.fromJson(Map<String, dynamic> json) {
    anmay = json['anmay'];
  }
}
